package com.example.server.repository;

import com.example.server.entity.ElasticCity;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface ElasticCityRepository extends ElasticsearchRepository<ElasticCity, Long> {

    @Query("\"match_all\": {}")
    List<ElasticCity> customFindAll();
}
